KVERS = $(shell uname -r)


#kernel module
obj-m += hello.o
obj-m += param.o
obj-m += export-symbol.o
obj-m += use-symbol.o

#specific flag for the module compilation.
#EXTRA_CFLAGS=-g -O0

build: kernel_modules

kernel_modules:
	make -C /lib/modules/$(KVERS)/build/ M=$(PWD) modules

clean:
	make -C /lib/modules/$(KVERS)/build/ M=$(PWD) clean